<!DOCtype html>
<html ng-app="advertiserApp">
	 <head>
	     <meta charset= "utf-8"/>
		 <title>收件箱</title>
		 <script type="text/javascript" src="/web-adv/advWeb/static/vendor/angular/angular.min.js"></script>
		 <script type="text/javascript" src="/web-adv/advWeb/static/vendor/jquery/dist/jquery.min.js"></script>
		 <script type="text/javascript" src="/web-adv/advWeb/static/vendor/bootstrap/dist/js/bootstrap.min.js"></script>
		 <script type="text/javascript" src="/web-adv/advWeb/static/js/mainApp.js"></script>
		 <script type="text/javascript" src="/web-adv/advWeb/static/js/main.js"></script>
		 <script type="text/javascript" src="/web-adv/advWeb/controller/message/index.js"></script>
		 <script type="text/javascript" src="/web-adv/advWeb/static/js/extendPagination.js"></script>
		 <link rel="stylesheet" href="/web-adv/advWeb/static/vendor/bootstrap/dist/css/bootstrap.min.css" />
		 <link rel="stylesheet" href="/web-adv/advWeb/static/vendor/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" />
		 <link rel="stylesheet" href="/web-adv/advWeb/static/styles/table.css" />
		 <link rel="stylesheet" href="/web-adv/advWeb/static/styles/layout.css" />
		 <link rel="stylesheet" href="/web-adv/advWeb/static/styles/main.css" />
		 <link rel="shortcut icon" href="/web-adv/advWeb/static/favicon.ico" />
		 <link rel="bookmark" href="/web-adv/advWeb/static/favicon.ico" />
		 <style>
		 #write{background-color:#ff9933;border:none;}
		 </style>
	 </head>
	 <body ng-controller="advertiserCtrl">	
         <div class="headerBox"></div>
         <div class="nav"><ul></ul></div>
		 <div class="content">
         <!-- begin -->		 
		     <div class="websiteMapBox">
			     <span>当前页面></span>
				 <span>收件箱</span>
			 </div>
			 <!-- 站内信 -->
			 <div class="tableBox">
	     <div class="form-group btnGroup">
		     <a href="#" class="btn btn-primary btn-first">收件箱</a>	     	    
		 </div>		 		    		 	
		 <div class="messageTitle">
		     <div class="messageTitleLeft">
			    <!--  <a href="#" class="hasClick">全部</a>	 -->		     
			 </div>
		     <div class="messageTitleRight">	     
			     <a ng-href="/web-adv/advWeb/views/message/write.html?selectedNav=6&navPos=0&sender_id={{adId}}&addressee_name={{adminName}}&addressee_id={{adminId}}" class="btn btn-primary" id="write">写信</a>
			 </div>	
             <div class="clear"></div>			 
		 </div>
		 <table class="table table-striped table-bordered table-hover tableMargin tableMessage">
		     <tr>
			     <th>
				     <input type="checkbox" />
				 </th>
			     <th>发件人</th>
			     <th>发件人类型</th>
			     <th>标题</th>
			     <th>时间</th>
			     <th>状态</th>
			     <th>回复</th>
			     <th>操作</th>			     
			 </tr>			 
			 <tr ng-if="todayShow"><td class="tableDataTitle"><span>今天</span>（<span ng-bind="arr.today.todayNum">1</span>封）</td></tr>
			 <!-- today -->
			 <tr ng-if="todayShow" ng-repeat="item in arr.today.msgPage">
			     <td><input type="checkbox" ng-bind="item.id"/><span class="hide" ng-bind="item.id"></span></td>
			     <td ng-bind="item.sender_name">管理员</td>
			     <td ng-bind="item.sender_type">管理员</td>
			     <td><a ng-bind="item.mail_title" ng-href="/web-adv/advWeb/views/message/detail.html?selectedNav=6&navPos=0&flag={{item.inbox_state}}&msgId={{item.id}}">您有一封来自管理员的站内信：【汇总测试】需要您进行在线评分，请及时处理！</a></td>
			     <td ng-bind="item.create_time">2016-10-20</td>
			     <td ng-bind="item.inbox_state"></td>
			     <td><a ng-href="/web-adv/advWeb/views/message/reply.html?selectedNav=6&navPos=0&msgId={{item.id}}">回复</a></td>
			     <td><button class="btn btn-primary" ng-click="delOneMsg(item.id)">删除</button></td>			     
    		 </tr>						 
			 <!-- yesterday -->
			 <tr ng-if="yesterdayShow"><td class="tableDataTitle"><span>昨天</span>（<span ng-bind="arr.yesterday.yesterdayNum">1</span>封）</td></tr>
			 <tr ng-if="yesterdayShow" ng-repeat="item in arr.yesterday.msgPage">
			     <td><input type="checkbox" ng-bind="item.id"/><span class="hide" ng-bind="item.id"></span></td>
			     <td ng-bind="item.sender_name">管理员</td>
			     <td ng-bind="item.sender_type">管理员</td>
			     <td><a ng-bind="item.mail_title" ng-href="/web-adv/advWeb/views/message/detail.html?selectedNav=6&navPos=0&flag={{item.flag}}&msgId={{item.id}}">您有一封来自管理员的站内信：【汇总测试】需要您进行在线评分，请及时处理！</a></td>
			     <td ng-bind="item.create_time">2016-10-20</td>
			     <td ng-bind="item.inbox_state">已读</td>
			     <td><a ng-href="/web-adv/advWeb/views/message/reply.html?selectedNav=6&navPos=0&msgId={{item.id}}">回复</a></td>
			     <td><button class="btn btn-primary" ng-click="delOneMsg(item.id)">删除</button></td>			     
    		 </tr>
			 <!-- earlier -->			
			 <tr ng-if="earlierShow"><td class="tableDataTitle"><span>上个星期</span>（<span ng-bind="arr.earlier.earlierNum">1</span>封）</td></tr>
			 <tr ng-if="earlierShow" ng-repeat="item in arr.earlier.msgPage">
			     <td><input type="checkbox" ng-bind="item.id"/><span class="hide" ng-bind="item.id"></span></td>
			     <td ng-bind="item.sender_name">管理员</td>
			     <td ng-bind="item.sender_type">管理员</td>
			     <td><a ng-bind="item.mail_title" ng-href="/web-adv/advWeb/views/message/detail.html?selectedNav=6&navPos=0&flag={{item.flag}}&msgId={{item.id}}">您有一封来自管理员的站内信：【汇总测试】需要您进行在线评分，请及时处理！</a></td>
			     <td ng-bind="item.create_time">2016-10-20</td>
			     <td ng-bind="item.inbox_state">已读</td>
			     <td><a ng-href="/web-adv/advWeb/views/message/reply.html?selectedNav=6&navPos=0&msgId={{item.id}}">回复</a></td>
			     <td><button class="btn btn-primary" ng-click="delOneMsg(item.id)">删除</button></td>			     
    		 </tr>
		 </table>		 
	     <div class="pageBox">
             <div class="pageHandle">
			     <button class="btn btn-primary btn-first" ng-click="delMore()">删除</button>
			 </div>		 
             <div class="selectPage">
			     <span>转至</span>
				 <input type="text" class="form-control inline-block selectPageInput" name="selectPage"/>
				 <span>页</span>
				 <button class="btn btn-primary">确认</button>
			 </div>
			 <div id="pageBox"></div>			 		 
			 <div class="clear"></div>
		 </div>
	 </div>
		 <!-- end -->
		 </div>
		
	 </body>
</html>